<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<include file="dictionary/nav" />
		<form class="well form-inline margin-top-20" method="get" action="{:url('dictionary/index')}">
			分类:
			<select class="form-control w-140" name="dict_type">
				<foreach name="dict_types" key="key" item="item">
					<option value='{$key}' <eq name="Think.get.dict_type" value="$key">selected</eq>>{$item}</option>
				</foreach>
			</select> &nbsp;&nbsp;
			<input type="text" class="form-control w-120" name="keyword" value="{:input('request.keyword/s','')}" placeholder="请输入 关键词">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:url('dictionary/index')}">清空</a>
		</form>
		<form action="{:url('dictionary/listorder')}" class="js-ajax-form" method="post">
			<div class="table-actions">
				<button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
			</div>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="100">字典类型</th>
					<th width="120">key</th>
					<th width="200">value</th>
					<th width="60">排序</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.dict_type|dict_convert="dict_type",###}</td>
					<td>{$vo.key}</td>
					<td>{$vo.value}</td>
					<td>
						<input name="list_orders[{$vo.id}]" class="input-order" type="text"
							   value="{$vo.list_order}">
					</td>
					<td>
						<a href='{:url("dictionary/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		</form>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>